package com.java_base.study;


/**
 * OperatorDemo05:运算符
 * 数值拆分**** 需求：一个三位数，将其拆分为个位、十位、百位后，打印输出在控制台
 */
public class OperatorTest01 {
    public static void main(String[] args) {
        int a = 123;
        int ge = a % 10;
        int shi = a / 10 % 10;
        int bai = a / 100;
        System.out.println(ge);
        System.out.println(shi);
        System.out.println(bai);
    }
}
